<template>

    
    <el-table :data="tableData" style="width: 100%">
    <el-table-column prop="pname" label="患者" width="180">
    </el-table-column>
    <el-table-column prop="dname" label="医生"  width="180">
    </el-table-column>
    <el-table-column prop="startTime"  label="起始时间" width="180">
    </el-table-column>
    <el-table-column prop="endTime"  label="结束时间" width="180">
    </el-table-column>
    <el-table-column prop="oid"  label="订单编号" width="180">
    </el-table-column>
    <el-table-column prop="ostate"  label="订单状态" width="180">
    </el-table-column>
    <el-table-column prop="otname"  label="服务" width="180">
    </el-table-column>
    </el-table>




    <!-- 添加模态框开始 -->
    <!-- <el-button type="text" @click="dialogFormVisible = true" style="float:left;">
        添加用户
    </el-button> -->
    <!-- 模态框 -->
    <!-- <el-dialog title="我的套餐" :visible.sync="dialogFormVisible">
      <el-form :model="form">
        <el-form-item label="账户" :label-width="formLabelWidth">
          <el-input v-model="form.username" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="密码" :label-width="formLabelWidth">
          <el-input v-model="form.password" autocomplete="off"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="save"
          >添加</el-button
        >
      </div>
    </el-dialog> -->

</template>

<script>
export default {
   mounted() {
 
    this.findBypid();
  },
  data(){
    return{
      tableData:[

      ]
    }
  },
  methods:{
      findBypid() {
          this.$axios.get("patient-serv/findByPid/"+"2")
          .then((response)=>{
           let r=response.data;
           this.tableData=r.data;
            if(r.code==200){
              this.$message({
                // message:"新增客户成功",
                // type:"success",
                
              });
              
            }
          })
      },
     
     
    
  }
}
</script>


<style>

</style>